//
//  WKTwoViewController.m
//  WKDemo
//
//  Created by wangzhaohui-Mac on 14-7-31.
//  Copyright (c) 2014年 com.app. All rights reserved.
//

#import "WKTwoViewController.h"
#import "WKTwoEliteViewController.h"
#import "WKTwoNewViewController.h"
#import "WKTwoThroughViewController.h"

#define WKChildViewX 0
#define WKChildViewY 0
#define WKChildViewW 320
#define WKChildViewH 372

@interface WKTwoViewController ()
@property (nonatomic,strong) WKTwoEliteViewController *eliteVC;
@property (nonatomic,strong) WKTwoNewViewController *NewVC;
@property (nonatomic,strong) WKTwoThroughViewController *throughVC;
@end

@implementation WKTwoViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self addSubView];
}

/**
 *  刷新
 */
- (void)rightRefresh
{
    WKLog(@"rightRefresh--->>WKTwoViewController");
    
}
- (void)addSubView
{
    //精华
    WKTwoEliteViewController *eliteVC = [[WKTwoEliteViewController alloc] init];
    self.eliteVC = eliteVC;
    eliteVC.navigation = self.navigationController;
    eliteVC.tableView.frame = CGRectMake(0, 0, 320, 372);
//    eliteVC.tableView.backgroundColor = WKRandomColor;
//    self.eliteTableView = eliteVC.tableView;
    [self.scrollView addSubview:eliteVC.tableView];
    
    
    //最新
    WKTwoNewViewController *newVC = [[WKTwoNewViewController alloc] init];
    self.NewVC = newVC;
    newVC.navigation = self.navigationController;
    newVC.tableView.frame = CGRectMake(320, 0, 320, 372);
//    newVC.tableView.backgroundColor = WKRandomColor;
//    self.newtableView = newVC.tableView;
    [self.scrollView addSubview:newVC.tableView];
    
    
    //穿越
    WKTwoThroughViewController *throughVC = [[WKTwoThroughViewController alloc] init];
    self.throughVC = throughVC;
    throughVC.navigation = self.navigationController;
    throughVC.tableView.frame = CGRectMake(640, 0, 320, 372);
//    throughVC.tableView.backgroundColor = WKRandomColor;
//    self.throughTableView = throughVC.tableView;
    [self.scrollView addSubview:throughVC.tableView];
    
    
}

@end
